package cn.kevinproject.dingtalk_robot.robot;

import lombok.Data;

/**
 * @author kevin lau
 */
@Data
public class Robot {

    private final static String BASE_URL = "https://oapi.dingtalk.com/robot/send?";

    private String accessToken;

    public Robot(String accessToken) {
        this.accessToken = accessToken;
    }

    public String getUrl(){
        return BASE_URL + "access_token=" + accessToken;
    }
}
